﻿@model KRM.Core.tblRDMQuestionnaire
<form action="/rdm/questionnaireform" method="POST" class="questionaireform">
    @Html.Partial("Partial/_MessageResult")
    <input type="hidden" name="id" value="@Model.ID"/>
    <input type="hidden" value="@Model.OrderItemID" id="OrderItemID"/>
    <div class="row-fluid">
        <p>To add an RDM for a : @ViewBag.ProductOption please fill in the following check list and Pre-RDM Questionnaire:</p>
    </div>
    <div class="row-fluid">
        <div class="span1">1</div>
        <div class="span3">Reason</div>
        <div class="span5">
            @Html.DropDownList("ReasonID", null, "--Please select--", new { required = "required" })
        </div>
    </div>
    <div class="row-fluid">
        <div class="span1">2</div>
        <div class="span3">Reason detail</div>
        <div class="span5">
            @Html.DropDownList("ReasonDetailID", null, "--Please select--", new { required = "required" })
        </div>
    </div>
    <div class="row-fluid">
        <div class="span1">3</div>
        <div class="span11">
            <input type="checkbox" name="IsCheckedAllParts" value="True" class="pull-left" style="margin-right: 7px" @(Model.IsCheckedAllParts == true ? "checked=checked" : "")/>
            I have asked the customer  to check through all parts/ checked  in between panels
        </div>
    </div>
    <div class="row-fluid">
        <div class="span1"></div>
        <div class="span11">
            <div class="span2">Comment</div>
            <div class="span10">
                <textarea style="width: 96%" name="CheckedAllPartsComments">@Model.CheckedAllPartsComments</textarea>
            </div>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span1">4</div>
        <div class="span11">
            <input type="checkbox" name="IsCheckedDailyExceptionReport" value="True" class="pull-left" style="margin-right: 7px" @(Model.IsCheckedDailyExceptionReport == true ? "checked=checked" : "")/>
            I have checked the Daily Exception Report
        </div>
    </div>
    <div class="row-fluid">
        <div class="span1"></div>
        <div class="span11">
            <div class="span2">Comment</div>
            <div class="span10">
                <textarea style="width: 96%" name="CheckedDailyExceptionReportComment">@Model.CheckedDailyExceptionReportComment</textarea>
            </div>
        </div>
    </div>

    <div class="row-fluid">
        <div class="span1">5</div>
        <div class="span11">
            <input type="checkbox" name="IsLabelledCorrectly" value="True" class="pull-left" style="margin-right: 7px" @(Model.IsLabelledCorrectly == true ? "checked=checked" : "")/>
            Are the packs Labelled  Correctly, ie customer name, Part Name...
        </div>
    </div>
    <div class="row-fluid">
        <div class="span1"></div>
        <div class="span11">
            <div class="span2">Comment</div>
            <div class="span10">
                <textarea style="width: 96%" name="LabelledCorrectlyComments">@Model.LabelledCorrectlyComments</textarea>
            </div>
        </div>
    </div>

    <div class="row-fluid">
        <div class="span1">5</div>
        <div class="span11">
            <input type="checkbox" name="IsPackersNameOnThePackingSheet" value="True" class="pull-left" style="margin-right: 7px" @(Model.IsPackersNameOnThePackingSheet == true ? "checked=checked" : "")/>
            What is the Packers name on the Packing Sheet ?
        </div>
    </div>
    <div class="row-fluid">
        <div class="span1"></div>
        <div class="span11">
            <div class="span2">Comment</div>
            <div class="span10">
                <textarea style="width: 96%" name="PackersName">@Model.PackersName</textarea>
            </div>
        </div>
    </div>

    <div class="row-fluid">
        <div class="span1">6</div>
        <div class="span11">
            <input type="checkbox" name="IsCheckedDriverPhotosComments" value="True" class="pull-left" style="margin-right: 7px" @(Model.IsCheckedDriverPhotosComments == true ? "checked=checked" : "")/>
            I have checked the Driver Photos / Comments
        </div>
    </div>
    <div class="row-fluid">
        <div class="span1"></div>
        <div class="span11">
            <div class="span2">Comment</div>
            <div class="span10">
                <textarea style="width: 96%" name="DriverPhotosComments">@Model.DriverPhotosComments</textarea>
            </div>
        </div>
    </div>

    <div class="row-fluid">
        <div class="span1">7</div>
        <div class="span11">
            <input type="checkbox" name="IsCheckedCustomerPhotos" value="True" class="pull-left" style="margin-right: 7px" @(Model.IsCheckedCustomerPhotos == true ? "checked=checked" : "")/>
            I have checked the Customer Photos
        </div>
    </div>
    <div class="row-fluid">
        <div class="span1"></div>
        <div class="span11">
            <div class="span2">Comment</div>
            <div class="span10">
                <textarea style="width: 96%" name="CustomerPhotosComments">@Model.CustomerPhotosComments</textarea>
            </div>
        </div>
    </div>

    <div class="row-fluid">
        <div class="span1">9</div>
        <div class="span11">
            Other comment - describe any damages and possible causes :
        </div>
    </div>
    <div class="row-fluid">
        <div class="span1"></div>
        <div class="span11">
            <textarea style="width: 96%" name="OtherComments">@Model.OtherComments</textarea>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span12 text-center" style="margin-top: 10px">
            <a href="javascript:;" class="btn  btn-primary issueresolve">Issue Resolvel</a>
            <a href="/rdm/generaterdm/@Model.OrderItemID?questionnaireid=@Model.ID" class="btn  btn-primary" style="margin: 0 20px" onclick="javascript:return confirm('Are you sure want to generate RDM?');">Generate RDM</a>
            <input type="button" value="Save" class="btn btn-primary savequestionnaire" />

        </div>
    </div>
</form>
